BIN_SERVER = server
BIN_CLIENT = client

OBJS_SERVER = server.o
OBJS_CLIENT = client.o

.PHONY: all

all: $(BIN_SERVER) $(BIN_CLIENT)

$(BIN_SERVER): $(OBJS_SERVER)
	$(CC) $(OBJS_SERVER) -o $@

$(BIN_CLIENT): $(OBJS_CLIENT)
	$(CC) $(OBJS_CLIENT) -o $@

%.o: %.c
	$(CC) -c $< -o $@

clean:
	rm $(BIN_CLIENT) $(BIN_SERVER) $(OBJS_CLIENT) $(OBJS_SERVER)

